package com.homedo.microservice.open.service.gateway.manager.web.gateway.bean.po;

import com.homedo.common.dao.bean.po.base.BasePo;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * 配置关系查询表
 *
 * @author 作者 jgshun
 * @date 创建时间 2018年09月28日 13时58分20秒
 */
@Table(name = "r_config_relation")
public class ConfigRelation extends BasePo {
    /**
     * 属性查询列表
     */
    public static final String FIELD_ID = "id";
    public static final String FIELD_APPLICATIONNAME = "applicationName";
    public static final String FIELD_ZUULFILTERID = "zuulFilterId";
    public static final String FIELD_GLOBAL = "global";
    public static final String FIELD_CREATETIME = "createTime";
    public static final String FIELD_UPDATETIME = "updateTime";
    public static final String FIELD_CONFIGNAME = "configName";


    /**
     * 列名查询列表
     */
    public static final String COLUMN_ID = "id";
    public static final String COLUMN_APPLICATION_NAME = "application_name";
    public static final String COLUMN_ZUUL_FILTER_ID = "zuul_filter_id";
    public static final String COLUMN_GLOBAL = "global";
    public static final String COLUMN_CREATE_TIME = "create_time";
    public static final String COLUMN_UPDATE_TIME = "update_time";
    public static final String COLUMN_CONFIG_NAME = "config_name";


    @Id

    @GeneratedValue(generator = "JDBC")

    @Column(name = "id")
    private Integer id;


    @Column(name = "application_name")
    private String applicationName;


    @Column(name = "zuul_filter_id")
    private String zuulFilterId;


    @Column(name = "config_name")
    private String configName;


    @Column(name = "global")
    private Boolean global;


    @Column(name = "create_time")
    private Date createTime;


    @Column(name = "update_time")
    private Date updateTime;

    /**
     * 获取 自增主键
     *
     * @return id - 自增主键
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置 自增主键
     *
     * @param id - 自增主键
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取 应用名称
     *
     * @return applicationName - 应用名称
     */
    public String getApplicationName() {
        return applicationName;
    }

    /**
     * 设置 应用名称
     *
     * @param applicationName - 应用名称
     */
    public void setApplicationName(String applicationName) {
        this.applicationName = applicationName;
    }

    /**
     * 获取 网关ID唯一标志
     *
     * @return zuulFilterId - 网关ID唯一标志
     */
    public String getZuulFilterId() {
        return zuulFilterId;
    }

    /**
     * 设置 网关ID唯一标志
     *
     * @param zuulFilterId - 网关ID唯一标志
     */
    public void setZuulFilterId(String zuulFilterId) {
        this.zuulFilterId = zuulFilterId;
    }

    public String getConfigName() {
        return configName;
    }

    public void setConfigName(String configName) {
        this.configName = configName;
    }

    /**
     * 获取 是否是全局配置 0否 1是
     *
     * @return global - 是否是全局配置 0否 1是
     */
    public Boolean getGlobal() {
        return global;
    }

    /**
     * 设置 是否是全局配置 0否 1是
     *
     * @param global - 是否是全局配置 0否 1是
     */
    public void setGlobal(Boolean global) {
        this.global = global;
    }

    /**
     * 获取 创建时间
     *
     * @return createTime - 创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 设置 创建时间
     *
     * @param createTime - 创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取 更新时间
     *
     * @return updateTime - 更新时间
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 设置 更新时间
     *
     * @param updateTime - 更新时间
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}